package cn.com.wxd.service.robot.tuling;

import java.io.Serializable;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import cn.com.wxd.common.file.ReadConfigFile;

/**
 * Title:图灵机器人配置信息
 * Description:cn.com.wxd.service.robot.tuling
 * <p>
 * Company: Amumu管理平台
 * Copyright: Copyright (c) 2015
 * All right reserved.
 * Created time: 2016-8-25 下午2:14:13
 *
 * @author WangXuDong
 * @version 1.0
 */
public class TuLingconfigInfo implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 8333205138127767102L;
    private static final Logger log = LoggerFactory.getLogger(TuLingconfigInfo.class);
    private static String key; //key
    private static String tuLingSDK; //图灵聊天SDK
    private static String addSDK;  //增加知识SDK
    private static String deleteSDK;//删除知识SDK
    private static String editSDK;//编辑知识SDK
    private static String querySDK;//查询知识SDK
    private static String editNameSDK;//修改机器人名称SDK

    static {
        init();
    }

    public static void init() {

        Map<String, String> conf = ReadConfigFile.readPropertiesConfig("wxd.tuling");

        key = conf.get("Key");
        tuLingSDK = conf.get("TuLingSDK");
        addSDK = conf.get("AddKnowle");
        deleteSDK = conf.get("DeleKnowle");
        editSDK = conf.get("EditKnowle");
        querySDK = conf.get("QueryKnowle");
        editNameSDK = conf.get("EditRobName");
        //			key = "aeaf70cc2e694b039f486e6711311456";
        //			tuLingSDK ="http://www.tuling123.com/openapi/api";
        //			addSDK = "http://www.tuling123.com/v1/setting/importfaq";
        //			deleteSDK = "http://www.tuling123.com/v1/setting/deletefaq";
        //			editSDK =  "http://www.tuling123.com/v1/setting/updatefaq";
        //			querySDK = "http://www.tuling123.com/v1/setting/selectfaq";
        //			editNameSDK = "http://www.tuling123.com/v1/setting/setnickname";
    }

    public static String getKey() {
        return key;
    }

    public static String getTuLingSDK() {
        return tuLingSDK;
    }

    public static String getAddSDK() {
        return addSDK;
    }

    public static String getDeleteSDK() {
        return deleteSDK;
    }

    public static String getEditSDK() {
        return editSDK;
    }

    public static String getQuerySDK() {
        return querySDK;
    }

    public static String getEditNameSDK() {
        return editNameSDK;
    }
}
